<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
    <script src="https://cdn.jsdelivr.net/npm/vue@2.6.10/dist/vue.js"></script>
</head>
<body>
    <div id="app">
        <div>
            <input type="text" v-model.lazy="content">
            <span>{{content}}</span>
        </div>
        <div>
            <input type="number" v-model.lazy="content2">
            <span>{{content2}}</span>
        </div>
        <div>
                <input type="number" v-model.trim="content3">
                <span>{{content3}}</span>
            </div>

    </div>
    <script>
        new Vue({
            el:"#app",
            data:{
                content:'请输入',
                content2:'请输入数字',
                content3:'请输入trim'   // 清除前后空格
            }
        })
    </script>
</body>
</html>